﻿// --------------------------------------------------------------------------------------------------------------------
// <copyright file="IConnection.cs" company="">
//   
// </copyright>
// <summary>
//   The i connection.
// </summary>
// --------------------------------------------------------------------------------------------------------------------


using System;

namespace Systemathics.FrameWork.Interfaces
{
    public interface IConnection : IDisposable
    {
        string Name { get; }
        bool isConnected { get; }
        void Connect();
        void Disconnect();
        void Suscribe(Instrument instrument);
        void Unsubscribe(Instrument instrument);

        event EventHandler<FireMessageEventArgs> EmitError;
        event EventHandler<FireMessageEventArgs> EmitConnectionStatus;
    }
}